<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/rt_styleswitcher.php");
$iso = split( '=', _ISO );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
if ( $my->id ) {
	initEditor();
}
mosShowHead();

// *************************************************
// Change this variable blow to switch color-schemes
//
// If you have any issues, check out the forum at
// http://www.rockettheme.com
//
// *************************************************

$default_style = "style1";			// style1-6
$menu_name = "mainmenu";				// mainmenu by default, can be any Joomla menu name
$submenu = "vert";							// horiz | vert
$submenu_side = "left";					// left | right
$show_pathway = "false";				// true | false


// *************************************************

require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/rt_splitmenu.php");
require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/rt_styleloader.php");

// menu initialization code
$forcehilite = false;
$topnav = rtShowHorizMenu($menu_name);
$subnav = rtShowSubMenu($menu_name);
$tabcolor = rtGetTabColor();
$hilightid = rtGetHilightid();

// *************************************************
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/<?php echo $tstyle; ?>.css" rel="stylesheet" type="text/css" />

<!--[if lte IE 6]>
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_ie.css" rel="stylesheet" type="text/css" />
<![endif]-->
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/slimbox/slimbox.css" rel="stylesheet" type="text/css" media="screen" />
<link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/favicon.ico" />
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/mootools.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/slimbox.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/reflection.js"></script>
</head>
<body id="page_bg" class="<?php echo $tstyle; ?>">
	<div id="header">
		<div class="wrapper header">
			
			<a href="<?php echo $mosConfig_live_site;?>" class="nounder"><img src="<?php echo $mosConfig_live_site;?>/images/blank.png" border="0" alt="" id="logo" /></a>
			<div id="nav">
				<?php echo $topnav; ?>
			</div>
			
		</div>
	</div>
	<?php if ($submenu=="horiz") { ?>
	<div id="menu_horiz" >
		<div class="wrapper">
			<?php echo $subnav; ?>
			<div class="clr"></div>
		</div>
	</div>
	<?php } else { ?>
		<div id="menu_divider" ></div>
	<?php } ?>
	<?php if(mosCountModules('top')) { ?>
	<div id="showcase">
		<div class="wrapper">
			<div class="padding">
					<?php mosLoadModules('top', -2); ?>
			</div>
		</div>
	</div>
	<div id="showcase_bottom"></div>
	<?php } ?>
	<div id="mainbody">
		<div class="wrapper">
			<div id="mainbody-2">
				<div id="mainbody-3">
					<div id="mainbody-4">
						<div id="mainbody-5">
						
							<div id="mainbody-padding">
								<table class="mainbody" cellspacing="0" cellpadding="0">
									<tr valign="top">
										<?php if(mosCountModules('left') || (strlen($subnav)>0 && $submenu_side=="left") && $submenu =="vert") { ?>
										<td class="left">
											<div class="padding">
												<?php if($submenu_side=="left" && $submenu=="vert") { ?>
													<div id="menu_vert">
														<?php echo $subnav; ?>
													</div>
												<?php } ?>
												<?php mosLoadModules('left', -2); ?>
											</div>
										</td>
										<?php } ?>
										<td class="mainbody">
											<?php if(mosCountModules('user1') || mosCountModules('user2') || mosCountModules('user3')) { ?>

											<table class="headlines" cellspacing="10">
												<tr valign="top">
													<?php if(mosCountModules('user1')) { ?>
													<td class="headlines">
														<?php mosLoadModules('user1', -2); ?>
													</td>
													<?php } ?>
													<?php if(mosCountModules('user2')) { ?>
													<td class="headlines">
														<?php mosLoadModules('user2', -2); ?>
													</td>
													<?php } ?>
													<?php if(mosCountModules('user3')) { ?>
													<td class="headlines">
														<?php mosLoadModules('user3', -2); ?>
													</td>
													<?php } ?>
												</tr>
											</table>
		
											<?php } ?>
											<div class="padding">
												<?php if ($show_pathway == "true") { ?>
												<?php mosPathway(); ?>
												<?php } ?>
												<?php mosMainbody(); ?>
												<?php if(mosCountModules('user4') || mosCountModules('user5') || mosCountModules('user6')) { ?>
												<table class="footlines" cellspacing="10">
													<tr valign="top">
														<?php if(mosCountModules('user4')) { ?>
														<td class="footlines">
															<?php mosLoadModules('user4', -2); ?>
														</td>
														<?php } ?>
														<?php if(mosCountModules('user5')) { ?>
														<td class="footlines">
															<?php mosLoadModules('user5', -2); ?>
														</td>
														<?php } ?>
														<?php if(mosCountModules('user6')) { ?>
														<td class="footlines">
															<?php mosLoadModules('user6', -2); ?>
														</td>
														<?php } ?>
													</tr>
												</table>
												<?php } ?>
											</div>
										</td>
										<?php if(mosCountModules('right') || (strlen($subnav)>0 && $submenu_side=="right") && $submenu =="vert") { ?>
										<td class="right">
											<div class="padding">
												<?php if($submenu_side=="right" && $submenu=="vert") { ?>
												<?php echo $sidenav; ?>
												<?php } ?>
												<?php mosLoadModules('right', -2); ?>
											</div>
										</td>
										<?php } ?>
									</tr>
								</table>
							</div>							
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div id="footer">
		<div class="wrapper">
			<div id="footer-2">
				<div id="footer-3">
					<div id="the-footer">
						<a href="http://www.rockettheme.com/" title="RocketTheme Joomla Template Club" class="nounder"><img src="<?php echo $mosConfig_live_site;?>/images/blank.png" border="0" alt="RocketTheme Joomla Templates" id="rocket" /></a>
					</div>
				</div>
			</div>
			<div id="shadow-pad">
				<div id="shadow">
					<div id="shadow-rocket"></div>
				</div>
			</div>
			<div id="footer-text">
				<a href="http://jigsaw.w3.org/css-validator/validator?profile=css2&amp;warning=2&amp;uri=<?php echo $mosConfig_live_site;?>"><img src="<?php echo $mosConfig_live_site;?>/images/blank.png" class="css_button" alt="CSS Valid" /></a>
				<a href="http://validator.w3.org/check?uri=<?php echo $mosConfig_live_site;?>"><img src="<?php echo $mosConfig_live_site;?>/images/blank.png" class="xhtml_button" alt="XHTML Valid" /></a> 
				<?php mosLoadModules('footer',-1); ?>
			</div>
		</div>
	</div>


<?php mosLoadModules( 'debug', -1 );?>
</body>
</html>

